<template>
  <div :class="wrapClasses"
       :style="wrapStyles">
    <!--label-->
    <label :class="labelClasses"
           :style="labelStyles"
           v-if="isShowLabel">
      <slot name="label">{{label}}</slot>
    </label>
    <Radio v-for="(item,index) in currentDataList"
           :key="index"
           :radioLabel="item.name"
           :disabled="item.disabled || disabled"
           :value="item.code"
           :name="name"
           :checked="value"
           @change="checkedChange"/>
    <slot></slot>
    <!--验证提示-->
    <div :class="errorTipClasses"
         :style="errorTipStyles"
         v-if="isShowMessage">
      {{validateMessage}}
    </div>
  </div>
</template>
<script type="text/ecmascript-6"  src="./index.js"></script>
